{% extends 'pybb/base.html' %}
{% load pybb_tags %}
{% load i18n %}

{% block pybb_content %}
<h1>{% trans "Profile editing" %}</h1>
<img src="{{ profile.user|pybb_avatar_url }}" />
<form method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <fieldset>
        <legend>{% trans "Profile editing" %}</legend>
        {{ form.as_p }}
        <p><input type="submit" value="{% trans "Save" %}" /></p>
    </fieldset>
</form>
<h1>{% trans "Subscriptions on topics" %}</h1>
<ul>
{% for sub in user.subscriptions.all %}
<li>
<a href="{{ sub.get_absolute_url }}">{{ sub }}</a>
&mdash;
<strong>
    <a href="{% url pybb_subscription_delete sub.id %}">{% trans "delete" %}</a>
</strong>
</li>
{% endfor %}
</ul>
{% endblock %}
